<div style="position: absolute;top: 120px; left: 450px">
    <font style="font-size: 25px ;color: #e8198b">月度收支报表：</font>&nbsp;&nbsp;
    日期范围：<input type="text" class="su" id="timeRange">
    <input type="button" readonly="true" value="查询" onclick="payMonth()" style="background-color: #1E9FFF">
    收支次数：<span id="total"></span>&nbsp;&nbsp;&nbsp；<span id="overCount" style="display: none"></span>&nbsp;&nbsp;总收入金额：<span id="allPrice"></span> 支出总金额:<span id="overPrice"></span>

</div>
<table class="altrowstable">
    <tr>
        <td>编号</td>
        <td>收款时间</td>
        <td>收款金额</td>
        <td>经手人</td>
        <td>相关单据号</td>
        <td>收付款类型</td>
    </tr>
    <tbody id="payBody">

    </tbody>
    <div  style="position: absolute; margin-top: 0px;padding-left: 700px">
        <ul id="page">分页</ul>
    </div></table>
<script type="text/html" id="payTemplate">
    {{each data}}
    <tr>
        <td>{{$index+1}}</td>
        <td>{{$value.pay_time}}</td>
        <td>{{$value.pay_price}}</td>
        <td>{{$value.account}}</td>
        <td>{{$value.orderCode}}</td>
        <td>{{$value.pay_type}}</td>
    </tr>
    {{/each}}
</script>
<script>
    laydate.render({
        elem: '#timeRange'
        ,type: 'month'
    });
    function payMonth() {
        showPage3({
            currentPage: 1,
            pageSize: 3,
            url: '/payMonth',
            templateId: 'payTemplate',
            contentId: 'payBody',
            params:{
                date:$('#timeRange').val()
            }
        })
    }
</script>
